<div class="page-sidebar-wrapper">
		<!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
		<!-- DOC: Change data-auto-speed="200" to adjust the sub menu slide up/down speed -->
		<div class="page-sidebar navbar-collapse collapse">
			<!-- BEGIN SIDEBAR MENU -->
			<!-- DOC: Apply "page-sidebar-menu-light" class right after "page-sidebar-menu" to enable light sidebar menu style(without borders) -->
			<!-- DOC: Apply "page-sidebar-menu-hover-submenu" class right after "page-sidebar-menu" to enable hoverable(hover vs accordion) sub menu mode -->
			<!-- DOC: Apply "page-sidebar-menu-closed" class right after "page-sidebar-menu" to collapse("page-sidebar-closed" class must be applied to the body element) the sidebar sub menu mode -->
			<!-- DOC: Set data-auto-scroll="false" to disable the sidebar from auto scrolling/focusing -->
			<!-- DOC: Set data-keep-expand="true" to keep the submenues expanded -->
			<!-- DOC: Set data-auto-speed="200" to adjust the sub menu slide up/down speed -->
			<ul class="page-sidebar-menu page-sidebar-menu-light" data-keep-expanded="false" data-auto-scroll="true" data-slide-speed="200">
				<!-- DOC: To remove the sidebar toggler from the sidebar you just need to completely remove the below "sidebar-toggler-wrapper" LI element -->
				<li class="sidebar-toggler-wrapper">
					<!-- BEGIN SIDEBAR TOGGLER BUTTON -->
					<div class="sidebar-toggler">
					</div>
					<!-- END SIDEBAR TOGGLER BUTTON -->
				</li>
				<!-- DOC: To remove the search box from the sidebar you just need to completely remove the below "sidebar-search-wrapper" LI element -->
				<li class="sidebar-search-wrapper">
					<!-- BEGIN RESPONSIVE QUICK SEARCH FORM -->
					<!-- DOC: Apply "sidebar-search-bordered" class the below search form to have bordered search box -->
					<!-- DOC: Apply "sidebar-search-bordered sidebar-search-solid" class the below search form to have bordered & solid search box -->
					<form class="sidebar-search " action="/iadmin/sp" method="POST">
						<a href="javascript:;" class="remove">
						<i class="icon-close"></i>
						</a>
						<div class="input-group">
							<input type="text" class="form-control" placeholder="Search...">
							<span class="input-group-btn">
							<a href="javascript:;" class="btn submit"><i class="icon-magnifier"></i></a>
							</span>
						</div>
					</form>
					<!-- END RESPONSIVE QUICK SEARCH FORM -->
				</li>
				<li class="start <?php if($en=='index'){ echo 'active open'; }?>">
					<a href="/adminx">
					<i class="icon-home"></i>
					<span class="title">首页</span>
					<?php if($en=='index'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<?php if($this->session->userdata('state')==1 or $this->session->userdata('state')==2){ ?>
				<li class="<?php if($en=='Preview'){ echo 'active open'; }?>">
					<a href="/adminx/yl">
					<i class="icon-eye"></i>
					<span class="title">预览</span>
					<?php if($en=='Preview'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<li class="<?php if($en=='Menbers'){ echo 'active open'; }?>">
					<a href="/iadmin/member">
					<i class="icon-user"></i>
					<span class="title">会员</span>
					<?php if($en=='Menbers'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<li <?php $ens=array('Article','Keyword','Gallery'); if(in_array($en, $ens)){ echo 'class="active open"'; }?>>
					<a href="javascript:;">
					<i class="icon-docs"></i>
					<span class="title">素材管理</span>
					<span class="arrow <?php if(in_array($en, $ens)){ echo 'open'; }?>"></span>
					<?php if(in_array($en, $ens)){ echo '<span class="selected"></span>'; }?>
					</a>
					<ul class="sub-menu">
						<li class="<?php if($en=='Article'){ echo 'active'; }?>">
							<a href="/iadmin/article">
							文章</a>
						</li>
						<li class="<?php if($en=='Keyword'){ echo 'active'; }?>">
							<a href="/iadmin/gjz">
							关键字</a>
						</li>
						<li class="<?php if($en=='Gallery'){ echo 'active'; }?>">
							<a href="/iadmin/pic">
							图库</a>
						</li>
					</ul>
				</li>
				<?php } ?>
				
				<li class="heading">
					<h3 class="uppercase">商务</h3>
				</li>

				<li class="<?php if($en=='Commodity'){ echo 'active open'; }?>">
					<a href="/iadmin/sp">
					<i class="icon-present"></i>
					<span class="title">商品</span>
					<?php if($en=='Commodity'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<li class="<?php if($en=='Bill'){ echo 'active open'; }?>">
					<a href="/iadmin/bill">
					<i class="icon-basket"></i>
					<span class="title">订单</span>
					<?php if($en=='Bill'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<li class="<?php if($en=='Delivery'){ echo 'active open'; }?>">
					<a href="/iadmin/fh">
					<i class="icon-paper-plane"></i>
					<span class="title">物流</span>
					<?php if($en=='Delivery'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				
				<li class="<?php if($en=='ZB'){ echo 'active open'; }?>">
					<a href="/iadmin/zb">
					<i class="icon-notebook"></i>
					<span class="title">账本</span>
					<?php if($en=='ZB'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				
				
				<?php if($this->session->userdata('state')==1 or $this->session->userdata('state')==2){ ?>
				
				<li class="<?php if($en=='Cash flow'){ echo 'active open'; }?>">
					<a href="/iadmin/xj">
					<i class="icon-diamond"></i>
					<span class="title">现金流</span>
					<?php if($en=='Cash flow'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<li class="<?php if($en=='Weixin'){ echo 'active open'; }?>">
					<a href="/iadmin/weixin">
					<i class="icon-bubble"></i>
					<span class="title">微信信息</span>
					<?php if($en=='Weixin'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				
				<li class="<?php if($en=='WechatKF'){ echo 'active open'; }?>">
					<a href="/iadmin/kf">
					<i class="icon-call-end"></i>
					<span class="title">微信多客服</span>
					<?php if($en=='WechatKF'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>

				<?php } ?>
				
				<?php if($this->session->userdata('state')==1 or $this->session->userdata('state')==2){ ?>
				
				<li class="heading">
					<h3 class="uppercase">工具</h3>
				</li>
				<?php if($this->config->item('plug_plugx')){?>
				<li class="<?php if($en=='PLUG'){ echo 'active open'; }?>">
					<a href="/iadmin/plugx">
					<i class="icon-speedometer"></i>
					<span class="title">插件管理</span>
					<?php if($en=='PLUG'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<?php } ?>
				<?php if($this->config->item('plug_page')){?>
				<li class="<?php if($en=='PAGE'){ echo 'active open'; }?>">
					<a href="/iadmin/page">
					<i class="icon-screen-desktop"></i>
					<span class="title">页面管理</span>
					<?php if($en=='PAGE'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<?php } ?>
				
				<?php if($this->config->item('plug_voice')){ ?>
				<li class="<?php if($en=='DAOSHI'){ echo 'active open'; }?>">
					<a href="/iadmin/daoshi">
					<i class="icon-eyeglasses"></i>
					<span class="title">导师</span>
					<?php if($en=='DAOSHI'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<?php } ?>
				
				<?php if($this->config->item('plug_voice')){ ?>
				<li class="<?php if($en=='Course'){ echo 'active open'; }?>">
					<a href="/iadmin/voice">
					<i class="icon-disc"></i>
					<span class="title">课程</span>
					<?php if($en=='Course'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<?php } ?>
				



				<li class="<?php if($en=='Advertising'){ echo 'active open'; }?>">
					<a href="/iadmin/ad">
					<i class="icon-cup"></i>
					<span class="title">广告</span>
					<?php if($en=='Advertising'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>


				<?php } ?>
				
				<?php if($this->session->userdata('state')==3){ ?>
					<li class="<?php if($en=='Customer service'){ echo 'active open'; }?>">
					<a href="/iadmin/cus">
					<i class="icon-ghost"></i>
					<span class="title">客服授权</span>
					<?php if($en=='Customer service'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<?php } ?>
				
				<?php if($this->session->userdata('state')==2){ ?>
				<li class="heading">
					<h3 class="uppercase">系统</h3>
				</li>
				<li <?php $ens=array('Administrator','Customer service'); if(in_array($en, $ens)){ echo 'class="active open"'; }?>>
					<a href="javascript:;">
					<i class="icon-ghost"></i>
					<span class="title">管理员</span>
					<span class="arrow <?php if(in_array($en, $ens)){ echo 'open'; }?>"></span>
					<?php if(in_array($en, $ens)){ echo '<span class="selected"></span>'; }?>
					</a>
					<ul class="sub-menu">
						<li class="<?php if($en=='Administrator'){ echo 'active'; }?>">
							<a href="/iadmin/staff">
							管理员授权</a>
						</li>
						<li class="<?php if($en=='Customer service'){ echo 'active'; }?>">
							<a href="/iadmin/cus">
							客服授权</a>
						</li>
					</ul>
				</li>
				<li <?php $ens=array('Operation Logs','Instant Logs'); if(in_array($en, $ens)){ echo 'class="active open"'; }?>>
					<a href="javascript:;">
					<i class="icon-puzzle"></i>
					<span class="title">日志</span>
					<span class="arrow <?php if(in_array($en, $ens)){ echo 'open'; }?>"></span>
					<?php if(in_array($en, $ens)){ echo '<span class="selected"></span>'; }?>
					</a>
					<ul class="sub-menu">
						<li class="<?php if($en=='Operation Logs'){ echo 'active'; }?>">
							<a href="/iadmin/shop_log">
							系统日志</a>
						</li>
						<li class="<?php if($en=='Instant Logs'){ echo 'active'; }?>">
							<a href="/iadmin/ds">
							实时日志</a>
						</li>
					</ul>
				</li>
				<li class="last <?php $ens=array('Setting','Mune'); if(in_array($en, $ens)){ echo 'active open'; }?>">
					<a href="javascript:;">
					<i class="icon-settings"></i>
					<span class="title">系统设置</span>
					<span class="arrow <?php if(in_array($en, $ens)){ echo 'open'; }?>"></span>
					<?php if(in_array($en, $ens)){ echo '<span class="selected"></span>'; }?>
					</a>
					<ul class="sub-menu">
						<li class="<?php if($en=='Setting'){ echo 'active'; }?>">
							<a href="/iadmin/setting">
							系统信息</a>
						</li>
						<li class="<?php if($en=='Mune'){ echo 'active'; }?>">
							<a href="/iadmin/mune">
							栏目</a>
						</li>
					</ul>
				</li>
				<li <?php if($en=='Statistics'){ echo 'class="active open"'; }?>>
					<a href="/iadmin/tj">
					<i class="icon-bar-chart"></i>
					<span class="title">
					统计</span>
					<?php if($en=='Statistics'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<li <?php if($en=='QRcode'){ echo 'class="active open"'; }?>>
					<a href="/iadmin/qrcode">
					<i class="icon-grid"></i>
					<span class="title">
					二维码</span>
					<?php if($en=='QRcode'){ echo '<span class="selected"></span>'; }?>
					</a>
				</li>
				<?php } ?>
			</ul>
			<!-- END SIDEBAR MENU -->
		</div>
	</div>